Fixes swprintf_s issues hopefully. Also fixed an include not using correct caps. According to: http://connect.microsoft.com/VisualStudio/feedback/details/646532