libnih: enable threading; unbreak cross compilation.