Fix some deprecated warnings.

Signed-off-by: Eric G Taucher <researcher0x00@gmail.com>