Remove unnecessary -ldl and clean up includes for malloc tests.

I'm guessing a previous iteration used dlsym to look up the real malloc.

Change-Id: I18be9ef4db4ed059400074c8507d4e2fea882fbc
Reviewed-on: https://boringssl-review.googlesource.com/4100
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/ssl/test/CMakeLists.txt b/ssl/test/CMakeLists.txt
index 9992360..a0d7a5e 100644
--- a/ssl/test/CMakeLists.txt
+++ b/ssl/test/CMakeLists.txt
@@ -11,6 +11,3 @@
 )
 
 target_link_libraries(bssl_shim ssl crypto)
-if (NOT APPLE AND NOT WIN32)
-  target_link_libraries(bssl_shim dl)
-endif()
diff --git a/ssl/test/malloc.cc b/ssl/test/malloc.cc
index 6cc0b33..0559daf 100644
--- a/ssl/test/malloc.cc
+++ b/ssl/test/malloc.cc
@@ -19,10 +19,9 @@
 #if defined(__linux__) && !defined(OPENSSL_ARM) && !defined(OPENSSL_AARCH64)
 
 #include <stdint.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <unistd.h>
-#include <stdio.h>
 
 #include <new>