Fixed compatibilty for non-windows systems