Bind kqueue + misc cleanup