Patches for check_nt added into makefile [sf#651369] [#57]