Buffer delay compensation

This seems to be the first open source implementation of buffer delay compensation for VST plugin hosts.

It may be a good idea to review each commit by itself as each commit is an isolated step forward.

Each commit is an improvement by itself, all tests (including application tests) passes both on Linux and Windows on each of the commits.