build ok on archlinux by Wu Xingbo