Fix compilation errors on Ubuntu Trusty.