nif: add support for CFLAGS