Add Code::Blocks support
Add some options to the valgrind run
Fix compiler flags
Fix code style issues