hotfix for apple compiling

fixed the ifdef