CXX-241 Add optimized builds to travis