Similarly to what I did for CFLAGS and LDFLAGS in commit 20fdb8df, the preprocessor flags for build tools should also be correctly defaulted and used when building invert-svg.