add build rule for system and memory_pool