Update GreedyAtlasMain.cxx

BUG: When compiling with gcc 4.8.2, the following error was happening:
error: ‘gethostname’ was not declared in this scope
   gethostname(hostname, HOSTNAME_SIZE);