Switch the platform statement to platform_family

darwin -> mac_os_x
Change tabs to spaces to fix formatting