Fixed to compile under CodeBlocks