making it compatible with superbuild.

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