Small changes to make it compile on VS2013, still having issues with the FBO not working in VS2013 when it works in VS2012.