Fix cmakefiles for linux