Fix compatibility with WCF 2.0.0 Beta 6

Fixes #6
Remove use of deprecated methods

see WoltLab/WCF@257405df08d7e6307de59ad8c835ae3daa489350