Refactoring, add builds for LTCG, add def file to export functions.