Add libminijail static library target.

This will be used for statically-linked binaries on Android.

Also, fix the call to get_last_valid_cap() to only happen when we're
dropping capabilities.

Bug: 26099386
Change-Id: I741390b6b356592ec9bdfe54b04d23feab5702aa
2 files changed