build: Fix library filenames and symlinks.

Now libraries have correct realname, soname, etc...