Allow for -1 memory limit

A memory limit of -1 means no limit