Fix compiler warnings on Darwin. Don't use PIE on Darwin.