Add XDisplay workaround for Linux port