make code compile on linux, not all functionality is available