jsvc: fix broken CFLAGS and LDFLAGS

Closes #23802.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>