add 'DCOMPILING_<pkg>' to defines