tools: Rename variable bool to bool_value

Fix compile failure with GCC 9.3:

error: two or more data types in declaration specifiers
4 jobs for bool in 16 minutes and 50 seconds