Implemented RAM check to set max gcc threads