Fixed more type warnings, reset all debug flags.