Fixed build and added Travis CI support.