Corrected deprecation warnings

All warnings have now been removed, all the sources that used
depreciated functions have now been replaced by calls to updated secure
versions of api routines.