Fix osx detection, we do not parse result of os.getversion() in premake (seems it return something strange). Instead use internal os detection in premake.
Merge pull request #234 from vovkasm/fix_osx_detection

Fix osx detection, we do not parse result of os.getversion() in premake ...
Fixed the duplicated names pass check for conversion operators.
Merge remote-tracking branch 'origin/HEAD' into fix_linking_with_clang_libs

* origin/HEAD:
  Fixed the duplicated names pass check for conversion operators.
  Fix osx detection, we do not parse result of os.getversion() in premake (seems it return something strange). Instead use internal os detection in premake.
Consolidate LLVM linking
Link with LLVMProfileData only if it exists in libdirs.
This library exists only in recent llvm, so adding it to link, breaks windows builds...
Premake do not allow this, so implement StaticLinksOpt in Helpers.lua