migrated build over to cmake