Non-Windows compile fixes.