Also catch `DistutilsPlatformError` when building optional C extensions