Rework the build system and enable the silent mode

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>