Fixes to cmake files, now should be able to compile properly.