Compatibility with superbuild.

Signed-off-by: Tamas Ungi <ungi@cs.queensu.ca>