added --with-plugindir option