Fixed the build system to allow debugging