macdoc: build with XS or MD