libkml: force internal third-party libs to be linked statically

Closes #24282.

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