Fix compiler bugs GCC 4.6 4.7
Fix compiler bugs GCC 4.6 4.7