Buildfixes

These are just fixes needed to make it compile with MSVC 10 and another required for projects that are stored on anything other than C: drive.