moar gcc4.8 fixes
fix gcc4.8 warnings