fixed compiler warnings of newer gcc