Added Code::Blocks project file and .gitignore
Fixed a couple compile errors