Many: fix some compiler warnings; fix va_copy detection