fixed debug option for osx 10.9 or higher