Fix local links to not included sections, fixes #108

This transforms local links in an included page into internal links if
the page hasn't been fully included. This doesn't consider the case that
the target section (but not the full page) has been included at another
place in the page as this is considered to be rather unlikely.