added locale.h and math.h