librender: cleanup