The compiler complains about dl* function missing, this commit adds the necessary flag to pass to gcc to make it build correctly (cherry picked from commit 213623e291)
213623e291