fix bug: makefile defines are inconsistent with gre.h