only run ldconfig on platforms that support it