Wrap some strtod() into setlocale to avoid locale problems

The patch is made according to Jose Da Silva recommendations in the mailing list.

This patch is aimed to fix issue 630:

https://github.com/fontforge/fontforge/issues/630