Fixed broked code with GCC

When added support for Visual Studio, the code couldn't compile on CodeBlocks.