Port libnative to Dragonfly