I think that is incompatibility of the VS 2013 to XP. Try to lower some compiler settings like the _WINVER_ macro.
Read the
Visual Studio 2013 Compatibility and focus on the fine-printed additions.
Solution: use an older version like VS 2010 to target Windows XP.