fixed the warnings from the MinGW C compiler (warning C4152: nonstandard extension, function/data pointer conversion in expression). thanks Edwin Cleton for the report.