[CMake] fix build for mak