Make compilation works on travis box and ubuntu LTS