Bugfix: Make sure that the build install correctly all the dependencies.

The order of the ``apt-get`` command was affecting the installation
of the build.