fix missing macosx dependency
fix mingw compile