Add runtime version querying functions.

This fixes bug #282.
Merge pull request #1 from silverbuddy/master

Win32 issues