ROHD-2434: Bug fix for lofar-base code optimisation
Fix a bug where parts of the image are always compiled with
-march=haswell setting. This breaks even the compilation of lofar-base
further down the line when executed on a non-haswell build host.
(cherry picked from commit eacdc0c1)