Fix compilation warnings and add more debug flags