base: Filter out base library for static libs

Since static libs might be merged into shared libs base may clash with the base
in ldso. Also dynamic binaries do not contain crt0.s any more which may lead to
undefined references.

Issue #1017