Project can be only built with go1.12 or newer other build related changes to use new go1.12 features. Fixes #2815
Additionally this PR also supports multi-platform builds to avoid cross platform build issues.