Build: fixed build on wheezy. Recovery: fixed io_flags and docs.