Big ugly build changes might be needed for Debian/Ubuntu