swift-corelibs fails to build due to a missing header and an invalid pointer conversion. Patches are provided to fix both of these issues.