Fixed compilation with 'make -j'