Fixed building on travis and older versions of gcc