reorder memory into (null), globals+other static, stack, and dynamic; deprecate BUILD_AS_SHARED_LIB=1