Adds conditional include of io.h when compiling with MinGW

MinGW's `_mkdir()` lives in *io.h*. This is necessary to compile *test* target.