add travis config

The build-libraries.sh script was split out to allow Travis to compile the
libraries against the nightly Rust build.