Build: Remove empty define({}) from build output

Fixes gh-1768
Closes gh-1569
(cherry picked from commit 2c1b556d98da597b0490f204e3561f656987f17c)