I had to define S_ISREG in order to compile on my machine

I do not use that part of code, so I don't know if this is OK, but I had to add it to compile so that I can use the library.

* required for VC80 with Microsoft SDK 7.1