Fix missing build macros when compiling resources.