Fixed a bug in ManagedConnections test and moved condition variable notifications outside of locked scopes.
Added useful error message in case of trying to build outside of super-project.
Merge branch 'master' into next