[lib] Fixed some compiler warnings