Fix cmake files for non-mac targets (broke it)