Fix cmakelists.txt for x86/x64 compilation