Php 5.4 compatibility fixes

Behaviour of eval() changed since php 5.2, changed arg_getting_strings to inline.
Fixed E_STRICT fails because of inconsistent function declarations.