tblz: macosx build fixes