Fixed warnings in several packages