Various build system fixes (3rd try)

Ended up with cleanining up the POLARSSL variables/conditions in all Makefiles. Now POLARSSL_CFLAGS/_LIBS gets set in configure.ac and used in the Makefiles like any other library.