USE_RTTI is not defined as a preprocessor macro

Hi, I am updating my cpp + blueprints project to 4.23 and it is throwing the above error whenever it starts to compile my written project cpp classes. The build log suggests that my classes call ApexDefs.h which is what is throwing the error. See below.

2>c:\program files\epic games\ue_4.23\engine\source\thirdparty\physx3\apex_1.4\include\ApexDefs.h(54): error C4668: 'USE_RTTI' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>  [18/39] FaerosLaws.gen.cpp
2>  [19/39] SpellCastingComponent.cpp
2>c:\program files\epic games\ue_4.23\engine\source\thirdparty\physx3\apex_1.4\include\ApexDefs.h(54): error C4668: 'USE_RTTI' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>  [20/39] FrameLibrary.gen.cpp
2>  [21/39] InventoryComponent.gen.cpp
2>  [22/39] FaerosNiagaraComponent.cpp
2>  [23/39] Mystic.gen.cpp
2>  [24/39] CSVConverterComponent.gen.cpp
2>c:\program files\epic games\ue_4.23\engine\source\thirdparty\physx3\apex_1.4\include\ApexDefs.h(54): error C4668: 'USE_RTTI' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>  [25/39] Tala.gen.cpp
2>  [26/39] Creature.gen.cpp
2>  [27/39] UFrame.gen.cpp
2>  [28/39] RuneBase.cpp
2>  [29/39] SpellCastingComponent.gen.cpp
2>c:\program files\epic games\ue_4.23\engine\source\thirdparty\physx3\apex_1.4\include\ApexDefs.h(54): error C4668: 'USE_RTTI' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>  [30/39] Item.cpp
2>  [31/39] FaerosNiagaraComponent.gen.cpp
2>  [32/39] Item.gen.cpp
2>  [33/39] Weapon.gen.cpp
2>  [34/39] Weapon.cpp
2>  [35/39] PlayerGrab.cpp
2>  [36/39] PlayerGrab.gen.cpp
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command ""C:\Program Files\Epic Games\UE_4.23\Engine\Build\BatchFiles\Build.bat" DGDFantasyEditor Win64 Development -Project="C:\Projects\\.uproject" -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command.
2>Done building project ".vcxproj" -- FAILED.

My guess is that for some reason my classes reference physX and 4.23 has made changes to physX. Has anyone seen this before?