Now supports building with cmake.