Merge commit '3e879cc46c4de5a0954e7fd9facdea143743b657' into v2.6.x
#define security-scoped bookmark constants to 0 for those building on 10.6
Merge remote-tracking branch 'upstream/v2.6.x' into v2.6.x
CGImageSourceGetStatus can also crash
Prevent crash on missing folder