add typedef int bool to defaultcode