ported the dll building to vc11