fix some issues wiht genmake rules