Cmake fixes for linux