alloca is available without explicitly pulling it in. use the devel/popt pkg instead and fix PKGLOCALEDIR handling while I'm here. fixes install on Solaris.