Fix memory size setting for compiler