Fix static warnings/errors.