add better openal cmake script, add a special flag for mac