#41 Fix errors when building from CodeBlocks