fix symbol not found: all link as cxx

Signed-off-by: xiehuc <xiehuc@gmail.com>