Initialization changes in libardour and libpbd

Some changes to libardour and libpbd initialization/cleanup to look over. These are against master as even though there is a patch in there that would benefit a MSVC/non-gcc build it isn't really windows related.