Fix various 64 bit related warnings

Mostly printf() format strings and signed-unsigned comparisons.
Fixes the x86_64 build.
ParagraphLayout: Added CountGlyphs()
ParagraphLayout: Added GetTextBounds(). Untestet.
TextDocument: Added Length()
TextDocumentLayout: Added GetTextBounds().
TextDocumentLayout::GetTextBounds(): Forget to offset...

... by the vertical offset of the ParagraphLayout containing
the text offset.
ParagraphLayout: Added line info methods

 * CountLines()
 * LineIndexForOffset()
 * Bug fixes in GetTextBounds()
TextDocumentLayout: Line info and refactoring

 * Added LineIndexForOffset()
 * Extracted _ParagraphLayoutIndexForOffset()
TextDocumentView: Preparations for selection support

Added methods to deal with caret offset and selection anchor,
constructing a BShape enclosing the selection range and drawing
it. Added mouse event stubs.
Update translations from Pootle
ParagraphLayout: Added TextOffsetAt()

It returns the text offset at a given coordinate, and whether
the coordinate was more to the left or more to the right of the
glpyh center.
TextDocumentLayout: Added TextOffsetAt()

It iterates over the ParagraphLayoutInfos and finds
the one which must contain the location. Untestet.
TextDocumentView: Implemented beginnings of mouse-selection
pthread_join: Retry when interrupted as mandated by POSIX.

The spec explicitly states that pthread_join shall not return EINTR, so
we have to retry the wait when it gets interrupted instead of letting
the error code through.
TextDocumentView: Lock the view focus in MouseDown()
TextDocumentLayout: Fixed LineIndexForOffset()

It stepped over a wrong number of lines when skipping to the
ParagraphLayout containing the text offset.
TextDocumentView: Selection polishing, I-Beam cursor
TextDocumentView: Fix detecting pressed Shift-key.
ktracing: TraceOutput::PrintStackTrace(): Fix duplication
X86VMTranslationMapPAE: Extend kernel tracing

* Beside the physical address also print the PTE flags.
* Also trace Protect(), ClearFlags(), ClearAccessedAndModified().