Fix compling issues on Ubuntu