define S_ISREG if not already defined

 * required for VC80 with Microsoft SDK 7.1