Posniak

Fixed some Compilation Errors for VS2008 Compilation