remove compat functions that are present in php > 5.3