Minor change o main compilation script. "tests" subproject are included
only when compiling in debug mode.