use libavutil\time.h for time sync.

Signed-off-by: Jack <jack.wgm@gmail.com>
fix duplicate release HDC in win32 opengl.

Signed-off-by: Jack <jack.wgm@gmail.com>