Fix GCC, Linux and 64-bit builds. Also update CodeBlocks project.