Try setting LIBS and INC values on the command line