Merge pull request #69 from rvega/cpp-queued

Merging locks from cpp-mutex branch into cpp-queued branch.
Merge pull request #70 from rvega/cpp-queued

Added an example c++ app that uses the JACK audio API.