Use stdbool.h instead of manually defining bool