Several fixes for DragonFly (rebase)
load_self() needs to be public
auto merge of #20024 : mneumann/rust/dragonfly-fixes3, r=alexcrichton