Added platform dependent interface to serialize window IDs

This is required on some X11 window managers so the client can focus
windows on server.