fix MinGW dll build