more work on check_file_for_changes
enabled -Wall -Wextra in debug builds, fixed trivial problems