Added Mac OSX 10.9 SDK Support

Added SDK Support for Mac OSX 10.9. Placed the check for 10.9 in the first if statement, because if OS upgraded from 10.8 to 10.9, I think the SDK is retained. Hence if 10.9 is present, this condition forces it to use 10.9. 

Thanks!