Removed unused function definitions as we need php 5.2 and these functions are always available there