Compatibility with compilers on non-Ubuntu platforms