support building/running on all OS X versions >= 10.6

Signed-off-by: Ashish Kulkarni <kulkarni.ashish@gmail.com>