Make compile compatible with ubuntu