fdm: change config, Makefile

Signed-off-by: Dmitry V. Zimin <pfzim@mail.ru>
nail: change Makefile

Signed-off-by: Dmitry V. Zimin <pfzim@mail.ru>