Linux compile fix for some regression tests