Make it work on non Windows platforms