Fix tests for OS/X and dist package compile test.