mingw: undef lseek first

We're defining ```lseek``` before first undefining it. Compiler spews a lot of warnings.