build: add hacks to force waf to generate valid .pc files

Don't like this? You're invited to fix this crap.