Fixes for loading task DLLs