Fix fatal errors on multiple includes of functions.php (Fixes #636)