Various extra hacks to make packages with special requirements build