s3: Fix #9037, BSD has -lmd instead of -lmd5