removed unnecessary unistd.h
correctly define void-parameter functions
implemented an emulating windows version
implemented platform_sleep for windows