Fixed Windows compilation problem using MinGW by implementing a custom strtok_r