generate dll file name based on target os. issue #4119

generate dll file name base on the given target os, using core::os::consts which now contains constant values for all of the supported targets.