fixing lf
fix lf..
fix latest HAS_NAMESER code on cygwin, need to test on other platforms