Added checks in SConscript to only apply modified library flags in Unix