Some fixes for musl 0.9.9 and pkgsrc 2012Q4.