Add configuration file and cmake modifications to automate build on Travis.