better error messages for dll load