Consolidate / clean up exception types used for OS exceptions

https://issues.dlang.org/show_bug.cgi?id=13620
Wow, this code is old! This cast is no longer necessary in recent compiler versions, as concatenations of arrays with different element constness is now allowed.