Fixing a few build systems for MSVC2010, adding OSX, Windows builds