Add case for windows platform.
Fix: Stop using RbConfig obsolute API.