Add -Wc++-compat to CFLAGS and fix all implicit conversion warnings