Made things compile under clang in debug mode.
Merge branch 'sam_clang_debug' into sam_ql_refactor_compile