vc6 port

support building with Visual C++ 6.0