make some tweaks for netbsd compiling

git-svn-id: https://svn.code.sf.net/p/desmume/code/trunk@4949 5577840e-afb3-4e59-9ef3-2b7f898b1952