This will pick the `lib` output if it exists, otherwise default to `out`.
Co-authored-by: misuzu <bakalolka@gmail.com> Co-authored-by: Thomas Marhchand <thomas.marchand@tuta.io>