Port libgreen to Dragonfly