Fixed incorrect type ID error in Mac calls to native code