Fix a regression in Makefile with selecting memory layout.