Adding ulimit fix for mac os x