Remove exports for symbols that are available for libc_nonshared

Apperently on RHEL / CentOS 5.9 this breaks the compile since these
symbols are exported there. Also checked against Ubuntu and the symbols
are available there too.

Fixes #2217