Fixed API timeval formatting again. Use of snprintf() causes problems in MSVS.
MSVS build: Fixed debug build. MSVS doesn't like uninitialized variables.
Merge pull request #149 from troky/master

Bugfix and cleanup.