Revert "set travis to use gcc -O2, and to not build the unit tests"

This reverts commit c9c75e9933c2b94cd7a965200eae42970b541867.