Only link botan with -lrt and -lgmp on Linux

This fixes #1909

We still need to find a way to do
this only for static builds.