Pass user defines to preprocessor.

Otherwise passing -Dextension for the validator tool has no effect.

Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>