Implement dll build target for mingw