Switch -ldl to support ASan build