When built as a subproject, we need the master to decide what features to activate or not. This could lead to reduced dependences. This patch also allows to build without imlib2.