Enable Travis build matrix; fix build script