Remove some shared libraries from the static archive.

The archive does not include the following libraries anymore:
- libc
- libstdc++
- libdl
- libdrm