Don't build code that depends on QtCompositor when it's not available

The QtCompositor API is to be considered experimental for Qt 5.1, hence
it's not built by default.

See https://codereview.qt-project.org/#change,46370

If we can't find QtCompositor during the configuration phase, we won't
build any component that requires it.

Issue: #26