added support for windows using rb_metex
added support for windows using rb_metex