Fix compilation of S3C_mem and exynos_mem