Lib relocalisation, and correction of singleton

Might be forced to repush mingw version if seveen wants them. Also
pushing vcxproj and sln.