Lemon: Patched to compile with Visual Studio.
Lemon: correcting previous win32 access() fix.

The previous fix caused link errors when compiled as C++.
Lemon: Fixed compiler warning on Visual C++.