gnm: fixed gnm GNUMakefile and some methods