Fixes for non-Windows builds.