libstxx 1.4.0

fix compilation on 10.7 and 10.8

apply patch on old OS X versions, further include fixes for 10.7/10.8