Fix OUT_DIR not being passed to rustdoc

Close #847