Fix build-system to allow Hackage upload