Port 2.2.x

Hi Sandeep

I added some missing functions to the Port 2.2.x branch. It compiles now with 2.3.0. 
I don't have a 2.2.x version available, but as I just added some functions it should still work with 2.2.x.

Thank you for your work!

Regards,
Simon