Bug 1028588 - Fix dangerous public destructors of Mac-specific reference-counted classes - r=mstange