Global variables

Replaced STDIN OUT and ERR fd macros with const global variables