Fix Windows Building

* Make examples and tests link correctly
* Fix OpenSSL detection failure when cross-compiling

Fixes #118