conditionally compile for osx lion as well as snow leopard