Changes to make compatible with Windows

Added atoll substitute for windows