wolfssl: Fixes, code style changes and some refactorings