ALII-4569: Updates for making gmtime thread safe.

@mikes-spindance take a look.

We have to pull lwipdemo, the app and cyassl.