Enable extra portability warnings and add missing ar program check