Fix unity build

fixes #7433