Fix build for non-linux