Cleanup in cmake file. Now builds like a library.