Recursive library compilation

This patch will trigger recursive compilation only for the "fat" (multi platform) libraries.

The old logic remains unchanged.

This replaces #116 that triggered recursive compilation for every library, possibly incurring in compilation errors: it would have compiled things like documentation and examples (that, it turns out, usually don't compile) thus breaking things that used to work fine.