Copy some definitions from CMakeLists.txt to preamble
Disable warning C4996 in amalgamation