adding compiler optimizations to pairwise build