Trouble installing R23 on mac (11.6.8) with working observer (wx)

I have been running R19 for years now with no troubles on macos. I use kerl to build erlang. I have recently been trying to build R23, but the build fails due to wx issues. I have wxwidgets 3.2.1 installed via homebrew. The errors reported are shown below:

$ kerl build 23.3.4.16 23.3.4.16
Extracting source code
Building Erlang/OTP 23.3.4.16 (23.3.4.16), please wait...
20.6.0
APPLICATIONS DISABLED (See: /Users/geib/.kerl/builds/23.3.4.16/otp_build_23.3.4.16.log)
 * jinterface     : Java compiler disabled by user

APPLICATIONS INFORMATION (See: /Users/geib/.kerl/builds/23.3.4.16/otp_build_23.3.4.16.log)
 * wx             : wxWidgets was not compiled with --enable-compat28, wx will NOT be useable
 * wxWidgets don't have gl support, wx will NOT be useable
 * wxWidgets don't have wxStyledTextControl (stc.h), wx will NOT be useable
 * Can not link the wx driver, wx will NOT be useable

Any help would be greatly appreciated.
Thanks,

Mark.

You will need at least latest OTP 24 to run wxwidgets 3.2.