Merge "Refactored compilation on host to own method. Added dx option."