Work around quirks in the Debian build system of Precise and earlier.