Made compilable with iOS6/OSX 10.8 as deployment target.