diff --git a/liblog/logd_write.c b/liblog/logd_write.c
index d5d81383b20aab1356bc134fafceb99fd6a5303a..e40d2ceadeb63a27850757f3be10adc7c261a9d8 100644
--- a/liblog/logd_write.c
+++ b/liblog/logd_write.c
@@ -144,6 +144,7 @@ int __android_log_write(int prio, const char *tag, const char *msg)
     if (!strcmp(tag, "HTC_RIL") ||
         !strcmp(tag, "RILJ") ||
         !strcmp(tag, "RILC") ||
+        !strcmp(tag, "RILD") ||
         !strcmp(tag, "RIL") ||
         !strcmp(tag, "AT") ||
         !strcmp(tag, "GSM") ||
diff --git a/libpixelflinger/Android.mk b/libpixelflinger/Android.mk
index 6edc56fec8b6d36aae2e26be47d19f6efd4d28a5..510e11eb2dee3fcdb2fc39b0699c13c8d65f45df 100644
--- a/libpixelflinger/Android.mk
+++ b/libpixelflinger/Android.mk
@@ -49,7 +49,7 @@ PIXELFLINGER_CFLAGS += -fstrict-aliasing -fomit-frame-pointer
 endif
 
 LOCAL_SHARED_LIBRARIES := \
-	libhardware	\
+	libhardware_legacy	\
 	libcutils
 
 ifneq ($(TARGET_ARCH),arm)
diff --git a/libpixelflinger/codeflinger/ARMAssembler.cpp b/libpixelflinger/codeflinger/ARMAssembler.cpp
index c5edadf822155bdac66a2c37075cc5044922fc5e..ff7b0b3e0d6b91dc9b8b9972a863d4719ed596cc 100644
--- a/libpixelflinger/codeflinger/ARMAssembler.cpp
+++ b/libpixelflinger/codeflinger/ARMAssembler.cpp
@@ -23,7 +23,7 @@
 #include <cutils/properties.h>
 
 #if defined(WITH_LIB_HARDWARE)
-#include <hardware/qemu_tracing.h>
+#include <hardware_legacy/qemu_tracing.h>
 #endif
 
 #include <private/pixelflinger/ggl_context.h>