Fix some build setting inheritance