add netbsd mount; fix up compatibility with Linux