Core: Fix Compile for several c++ compilers