made Snapworld functions defined only on Unix-like systems