Fix Ubuntu 14.04 incompatibilities.