fixed errors and warnings in OS X 10.9