Add build script, travis configuration

Slight modification of https://github.com/ludovicc/jagged/commit/c2a7e0204cd1f3c9ab8254ac19f7c423471ae706 - big thanks to @ludovicc