Remove -lpthread and -ldl from ldflags Upstream-commit: 3d8aae13083458d87cc42882fa7c7ce681d620d2 Component: engine