Optimisation for configure builds

- CFLAG += -O2 now standard optimisation
- removed libSM, libICE where not needed on modern platforms