fixed gcc 4.7 warnings