Some compatibility fixes
CMakeLists fixes for *nix systems