Fix LC_LOCALE on Xcode 5

by including "locale.h".

Fixes #734