diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 13001cb516388e4bac1bdd17024e79a7efc39b9e..630d422f6fb20634fc7398634c64fdba43bd2b34 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,8 @@
 before_script:
+    - echo "deb http://ftp.us.debian.org/debian unstable main contrib non-free" >> /etc/apt/sources.list.d/unstable.list
     - apt-get update
-    - apt-get install -y -qq make g++ cmake libboost-test-dev gem
+    - apt-get install -y -qq make cmake libboost-test-dev gem
+    - apt-get install -t unstable g++-5
     - gem install funit
     - ./build.sh
 
diff --git a/build.sh b/build.sh
index e2a987b3551c7309ffc0300c3e8d69bcf314dc13..1f086b5ffe944cf10d5ecd6c81967e03fede9384 100755
--- a/build.sh
+++ b/build.sh
@@ -13,6 +13,7 @@ BUILD_TYPE=Debug
 # Turn of/off time profiling (1/0)
 WITH_TIME_PROFILIN=1
 
+CPP_COMPILER=g++
 #--------------#----------------------------------------------------------
 # Library path #
 #--------------#