Stubbing a few things to get consistent build behavior on Travis CI