[build] added mechanism for detecting if compilation of cyassl required