ALLJOYN-2354: Fix staticly linking AllJoyn into the JS plugin on Linux when BD=on.

Change-Id: I7afff2dad36522e139187ce6c1f2ed25f47e3855