fix Firefox load functions when compliling