Update CodeBlocks project and fix GCC warnings.