Set the right vararg flag for foreign functions