core: For compiling Zotonic files, also use platform defines.

(cherry picked from commit 043eaacce34e13bcf0b9bc91ee6f47652f1c24cc)