plugins: search for .a files if necessary

Authored by sheaf on Oct 28 2018, 11:30 AM.

Description

plugins: search for .a files if necessary

Summary:
on windows, plugins are loaded via .a files,
but those paths were not being searched when loading plugins

Test Plan: ./validate

Reviewers: Phyx, bgamari

Reviewed By: Phyx

Subscribers: RyanGlScott, rwbarton, carter

GHC Trac Issues: Trac #15700

Differential Revision: https://phabricator.haskell.org/D5253