Now works with minGW