Fixes for various gcc 4.8 compiler warnings
Merge pull request #2 from grinsfem/warning_fixes

Fixes for various gcc 4.8 compiler warnings