fix packages with magic configure-flags