Changed definition of run program to make it compile on windows.