use regex instead of pragmas to remove defines() from build; check in amd3 build scripts