Changed CMakeLists.txt to simplify building under windows.