Fix warnings generated by Pike 8.0. Note that some of the deprecation warnings have only been suppressed in order to be compatible with Pike 7.8. These will have to be fixed when the code is officially migrated to Pike 8.0 or later.