diff --git a/qgroundcontrol.pro b/qgroundcontrol.pro
index c49f065f3aa34fd7bfb17bb512291646ea34f91b..dbc01788935fb4f381f19836b9b010c2911e619b 100644
--- a/qgroundcontrol.pro
+++ b/qgroundcontrol.pro
@@ -58,7 +58,8 @@ DEPENDPATH += \
src/libs/utils \
src/libs/utils/src \
src/libs/opmapcontrol \
- src/libs/opmapcontrol/src
+ src/libs/opmapcontrol/src \
+ src/libs/opmapcontrol/src/mapwidget
INCLUDEPATH += \
src/libs/utils \
@@ -83,7 +84,7 @@ BUILDDIR = $$TARGETDIR/build
LANGUAGE = C++
OBJECTS_DIR = $$BUILDDIR/obj
MOC_DIR = $$BUILDDIR/moc
-UI_HEADERS_DIR = src/ui/generated
+UI_HEADERS_DIR = $$BUILDDIR/ui
MAVLINK_CONF = ""
# If the user config file exists, it will be included.
diff --git a/src/apps/mavlinkgen/mavlinkgen.pri b/src/apps/mavlinkgen/mavlinkgen.pri
index 8b83700538361a5e4bf7fe62ff183d651164f91d..8270518b47c0eca30cfe5c1fce807f747f1fa2d1 100644
--- a/src/apps/mavlinkgen/mavlinkgen.pri
+++ b/src/apps/mavlinkgen/mavlinkgen.pri
@@ -39,4 +39,4 @@ SOURCES += \
generator/MAVLinkXMLParser.cc \
ui/QGCMAVLinkTextEdit.cc
-RESOURCES = mavlinkgen.qrc
+RESOURCES += mavlinkgen.qrc
diff --git a/src/libs/opmapcontrol/src/mapwidget/mapresources.qrc b/src/libs/opmapcontrol/src/mapwidget/mapresources.qrc
index b7a0b985cdca38de02643ca25b6b5f358a1c3518..cfb7f513128a98ff274a1d70941b0cdefaa6dea3 100644
--- a/src/libs/opmapcontrol/src/mapwidget/mapresources.qrc
+++ b/src/libs/opmapcontrol/src/mapwidget/mapresources.qrc
@@ -2,7 +2,6 @@
images/bigMarkerGreen.png
images/marker.png
- images/compas.svg
images/airplane.svg
images/home.png
images/home.svg
@@ -12,6 +11,7 @@
images/mapquad.png
images/dragons1.jpg
images/dragons2.jpeg
+ images/compas.svg
images/airplanepip.png