Merge branch 'v0.5'
Initialize timeInfo struct to avoid compiler warnings
Properly return from CloseSync()
Fix debug message