Added support for all versions of the OS X sdk.

Using <macrodef> to implement the new SDK version support, including
10.6 to 10.x.