Fix warnings/errors.