Added namespace

* Replaced #pragma once with include guards for compatibility reasons
* Fixed x32 platform compiling under Visual Studio 2012 & 2010