[cmake] fix symbol exporting issue on newer gcc (#724)

1 file changed