Fixed redefinition of mbstate_t on FreeBSD

Change-Id: I6752f190d273d33ea504015d3388dda10023458d