build: add defines for compatibility with make build