Updated the cmake scripts a bit for linux compilation