Some optimizations and a fix

1) Fixed codeblocks project.
2) Removal of some annoying warning messages.

credits: assassina