Replace fileno() with _fileno() if MSVC 2005 or up

suppress /W4 warning about fileno() deprecation