fix ad_hoc build