Initial support for cmake
Fix travis build