add Visual C compatibility

Tested with VC 2003 32 bits. Passes nmake test.
Merge pull request #2 from bulk88/master

Add Visual C compatibility