Enhancement: Add support for static linking

We've added support for compiling reva with static linking enabled.
It's possible to do so with the `STATIC` flag: `make revad STATIC=true`

https://github.com/cs3org/reva/pull/3733