SOC_U: Fixed some compiler errors on OS X