Fix compile under MingW
Slightly improved version of mystrtok_r
Merge pull request #442 from kwolekr/mingw_compile_fix

Fix compile under MingW