[Mac] Avoid crash when combining with MonoMac/Xamarin.Mac

This PR avoids a potential crash when combining OpenTK with MonoMac / Xamarin.Mac.