Added %undef (not tested yet), tweaked Makefile.