apply gcc-4.9.0-musl.diff patch from musl-cross

this also includes the necessary changes for the or1k target