Add multi-threading support
Add linkage