[lib] cleanup some compiler warning