Added DEBUG flag for compiler, also moved install prefix to the project root if in debug mode.