Fix references to external dlls