Make windows and unix-compatible dll loading