Update the Linux/X11 build.

The Windows build is broken with this commit. This commit also updates
the CodeBlocks project.
Fix a few issues left over from the last commit.