Merge pull request #821 from davipt/master

use version-script only for ELF linux
Define NOMINMAN to fix windows build.
Merge pull request #823 from ricnewton/master

Define NOMINMAN to fix windows build.