[ticket/11731] Move functions_compatibility require

Because of all the places deprecated methods are
called, it is easier to place the require in functions.

PHPBB3-11731