Update settings.cmake

Fixes xmemory errors for some when compiling.