A little hack to make it compile on OSX

Now it compiles on OSX (10.9 Mavericks with latest XCode-provided GCC 4.2.1) 

I didn't test on Linux, but i believe it is okay too :)

Also, formatting looks a bit weird with github preview :/