Clean up error reporting to disable E_STRICT