Now compiles with cmake