replace custom bool type with stdbool.h