Fixed CMake to allow cross-compiler compilation