port of STP to the visual studio 2012 c-compiler

STP currently doesn't build with visual studio's 2012 c-compiler. These are all the necessary changes to make it work on my machine. Your mileage my vary.