Moved generic window and display functions to a common platforms include.