Add platform checks to CMakeLists.txt