Mostly fix travis-ci build.

Random forest test and one checkpoint test still fail:

https://travis-ci.org/spartan-array/spartan/builds/19347040

@EasonLiao, @fegin, maybe you can take a look at those?