Fix #8040. Build error with sip