Add EMFILE work around