fixes #85 - GCC (4.8) compile issues

includes some compile-time warning cleanups along the way