Fix broken icon extraction on OS X 10.8