Some fixes for dmd v2.060

I've commented extern function rt_isHalting(); (It's a part of old tango runtime and does not exists in druntime), and add some casts to non-const types.