fix format string for 64bit compile
update some formatting, set minimum version to 5.1.1, fix a leaked string