configure: Don't build python or perl plugin when plugins are disabled