Added a check make option and adjusted the travis file accordingly.