Adding -ldl to LDFLAGS.

Change-Id: Ibab1e87060cb9e75475b506be3a57ddb2fa80c6d