Fix unused function 'convert_wchar_endian_swap' compilation error on Mac Os X 10.7.5.

Closes OpenImageIO/oiio/#617.