Some fixes for MSVC 2012 to disable variadic templates and annotate some dll exports.