polarssl: don't build empty objects

Fixes the following warnings on OSX:

/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-havege.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-md4.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-memory_buffer_alloc.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-memory.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-padlock.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-pkcs11.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-threading.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-havege.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-md2.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-md4.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-memory_buffer_alloc.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-memory.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-padlock.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-pkcs11.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: .libs/libpolarssl.a(libpolarssl_la-threading.o) has no symbols
Merge pull request #1759 from rubenk/polarssl-build-only-what-we-need

polarssl: don't build empty objects
Revert "polarssl: don't build empty objects"

This reverts commit c32f4f4f824029ae19bce5dece40ec73a6addd76.

We need padlock.c on i386; perhaps we need other files in other places as well.
Replace hardcoded -llmdb with variable

and rename the variable to be consistent
with what we do for other libs