Warning fix

A series of commits to fix existing warnings.

These warnings prevent the project from compilation with strict (-Wall -Werror) flags w/ GCC-4.9.x