add version info
support mingw build