refs #14. adapter source code to win32 plateform.