Move ifdef flags to makefile.

Signed-off-by: katlogic <kat@lua.cz>