added some debug flags to the compilation