Change bool to int because windows can not find stdbool.h