Various paths updates for 4.0 Framework support

Also  `-fglasgow-exts` is deprecated and here I'm not sure if my replacement makes sense.