conditionalize to avoid deprecation in 2.0.0

If you don't require `dl` in ruby 2.0.0, then the DL constant is not available.  This should fix it.