fix for both vs2013 & linux gcc compile