mem-test now only builds if the MEMORY option is set