Fix up mouse warping.
Restore window caption and icon support.