reduce memory allocation so that build does not fail on machines with
low memory