Make exes in lib packages use dynamic linking.

Signed-off-by: Magnus Therning <magnus@therning.org>