[libcommhistory] Use hide_symbols instead of manual cflags

Found in an old local branch. Builds and runs fine.