Support building libsubtitle on Mac OS