Fix linking of libssl and libcrypto.

When I tried building the example I got an error (undefined reference to `SHA1'). Turns out that it wasn't actually linking the libraries. I put the flags after the source files and it solved the problem. I'm using GCC 4.6.3.