Build: Fix inheritance of parent directory compiler flags
Build: Fix inheritance of parent directory compiler flags

The previous implementation only worked to inherit flags from the
direct parent directory. This implementation will carry the flags
to all subdirectories. That is, for a directory chain a/b/c, now
c will inherit a's flags.

trflynn89/libfly,trflynn89/libfly