removed yet another set of -DXXX as well as $(PKGDEFINES). Updated configure to write some more stuff into config.h