fix multiple compilation errors in previous commit, missed because compiling over old version of polarssl