improved kif cross platform compatibility
improved cross platform compatability
ifs for windows