Fix: add missing 'api' flags (e.g -D__UNIX_JACK__) to CPPFLAGS