Add common.h with mising definitions
Fix BOOST_DIR for travis-ci