Fix strange find/replace typo.
Fix some compiler issues on linux.