Fixing numerous warnings and a failed compilation in tests.
Merge pull request #3 from jegonzal/master

Code Maintenance