fixed gcc pedantic warnings