build: use -export-symbols-regex for exporting symbols.