Local patches to gmrun to make it compile and run on a modern system