Initial code commit
Fix for mingw