renamed a private member.
tweaked warning message.
fixed compilation with gcc.