Fix build warnings from gcc 4.8