Finish auto-converting most of the gyp files.

I've also started writing down which ones need manual work.

Change-Id: I442782e1e3352e0de32b612f1bd2c167f231495a
diff --git a/aos/common/libc/BUILD b/aos/common/libc/BUILD
index fb27f3a..ad88f9d 100644
--- a/aos/common/libc/BUILD
+++ b/aos/common/libc/BUILD
@@ -5,6 +5,9 @@
   srcs = [
     'aos_strsignal.cc',
   ],
+  hdrs = [
+    'aos_strsignal.h',
+  ],
   deps = [
     '//aos/common/logging:logging_interface',
   ],
@@ -18,7 +21,7 @@
   deps = [
     ':aos_strsignal',
     '//third_party/gtest',
-    '//aos/common/logging:logging',
+    '//aos/common/logging',
   ],
 )
 
@@ -27,6 +30,9 @@
   srcs = [
     'dirname.cc',
   ],
+  hdrs = [
+    'dirname.h',
+  ],
 )
 
 cc_test(
@@ -35,6 +41,7 @@
     'dirname_test.cc',
   ],
   deps = [
+    ':dirname',
     '//third_party/gtest',
   ],
 )
@@ -44,6 +51,9 @@
   srcs = [
     'aos_strerror.cc',
   ],
+  hdrs = [
+    'aos_strerror.h',
+  ],
 )
 
 cc_test(