handle optional dependencies in travis-ci testing