Fixed gcc 4.7 compile error