Had to replace bool with char for NetBSD compat