imprint: Prevent double declaration of OC5's p() functions in backwards compatibility fixes.

Check if functions already exist before actually declaring them.