Adding travis config and small changes to build with Travis