Fixed minor problems of build script related to the generated sources dir. Added Travis CI build config.