fixed compiler warnings when compiling in -Os