build: Upgrade build scripts

Change-Id: I363a686458d96a3cfe8d23f6d5fedfc668e0d8fd
diff --git a/src/key-viewer-dialog.cpp b/src/key-viewer-dialog.cpp
index 07604dd..540adec 100644
--- a/src/key-viewer-dialog.cpp
+++ b/src/key-viewer-dialog.cpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /**
- * Copyright (c) 2013-2014, Regents of the University of California,
+ * Copyright (c) 2013-2017, Regents of the University of California,
  *
  * This file is part of NFD Control Center.  See AUTHORS.md for complete list of NFD
  * authors and contributors.
@@ -18,6 +18,7 @@
  */
 
 #include "key-viewer-dialog.hpp"
+#include "key-viewer-dialog.moc"
 #include "ui_key-viewer-dialog.h"
 #include "key-tree-item.hpp"
 
@@ -26,11 +27,6 @@
 #include <Qt>
 #include <QMenu>
 
-
-#ifdef WAF
-#include "key-viewer-dialog.moc"
-#endif
-
 namespace ndn {
 namespace ncc {