Make module work also with NSS installed, not only with OpenSSL

Fix according to this: http://stackoverflow.com/a/26892691