diff --git a/moo.mprj b/moo.mprj
index 7754cd0a..aa3e1c99 100644
--- a/moo.mprj
+++ b/moo.mprj
@@ -9,6 +9,10 @@
build/debug
--enable-debug --enable-all-warnings --enable-project --enable-unit-tests --prefix=${PREFIX:-/usr/local}
+
+ gcc-4.2
+ g++-4.2
+
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 4cec8969..ad937480 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -10,12 +10,12 @@ if MOO_ENABLE_UNIT_TESTS
TESTS = run-tests
endif
-AM_CFLAGS = \
- $(MOO_CFLAGS) \
- $(MOO_DEBUG_CFLAGS)
+AM_CFLAGS = $(MOO_CFLAGS)
+AM_CXXFLAGS = $(MOO_CXXFLAGS)
if MOO_ENABLE_UNIT_TESTS
AM_CFLAGS += -DSRCDIR=\"$(shell cd $(srcdir) && pwd)\" -DTOP_SRCDIR=\"$(shell cd $(top_srcdir) && pwd)\"
+AM_CXXFLAGS += -DSRCDIR=\"$(shell cd $(srcdir) && pwd)\" -DTOP_SRCDIR=\"$(shell cd $(top_srcdir) && pwd)\"
endif
noinst_PROGRAMS =