debugger: Fix GCond usage

g_cond_wait() and the likes unlock the passed in mutex during the wait
and re-lock it before returning.  However, the code here used to pass
in an unlocked mutex.

This used to work because GLib threading implementation was tolerant
and allowed unlocking an unlocked mutex, but GLib 2.42 has a new and
less tolerant implementation that would abort in such situation.

Fix this by properly locking the passed in mutex.

The implementation here also removes the second mutex only used for the
condition as the one used to protect the loop body can very well be
used and actually makes sense as they protect the same thing.

Doing so requires to properly wait for the thread to quit before
destroying the mutex, but this probably should be done anyways to avoid
forcefully killing the thread when the application quits.
Add the GeanyCtags plugin
geanyctags: use plugin_set_key_group() instead of deprecated PLUGIN_KEY_GROUP()
geanyctags: Use SETPTR() instead of deprecated setptr()
geanyctags: remove unused variable
geanyctags: simplify text selection retrieval
geanyctags: destroy the find tag dialog upon unload
geanyctags: destroy the find tag menu item upon unload
multiterm: Fix building with recent Vala versions

Vala doesn't allow dynamic code as global variable initializers
anymore, so move the dynamic initialization inside plugin_init().

Interestingly, if this actually used to work is only because the
initialization wasn't actually dynamic in C, as a NULL GList is a
valid one and that's what it was initialized to.
geanyctags: use g_unlink() instead of removing files by windows cmdline "del"
geanyctags: add MAINTAINERS information
geanyctags: add to POTFILES.in
geanyctags: add missing _(
geanyctags: Don't translate my name or the plugin name
multiterm: Fix vapidir under Automake >= 1.11.0a with VPATH builds

Automake 1.11.0a introduced an incompatible change, that is it now
changes directory to `$(srcdir)` before running `valac`.

This means `$(top_srcdir)`-based paths are most likely to be incorrect
when building out-of-tree (VPATH) if the user used relative path as
srcdir (e.g. invoked configure with something like `../configure`).

To fix that, use the absolute version of `$(top_srcdir)`.
Revert "autotools: Enable subdir-objects as many plugins use sub-directory objects"

This reverts commit 8873b9082c1c98b4f3e97062f0c6f26c9d980e95.

Unfortunately Automake has a bug when using `subdir-objects` and a
object is in a sub-directory that contains rules for creating other
objects.  See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17354

We use it in GeanyPrj's and GeanyVC's unit tests.

There are other possible fixes while still using `subdir-objects`:
* include the C file directly from the unit test main source file,
  like #include "../src/utils.c";
* switch these plugins to non-recursive Automake setup, so all rules
  are in the same Makefile.am.
Merge branch 'build-fixes'

This fixes all build issues and distcheck.
GeanyLaTeX: Fix inserting of cites having spaces inside catalog in front of the @
Merge pull request #161 from techee/geanyctags

Add the GeanyCtags plugin
geanyctags: Fix compilation on Windows

Thanks to Enrico for the pain of testing on Windows.