Verified to work on MinGW