macosx: compilation fix for earlier clang releases and runtime fix for 10.6