create dlopen snippet