test for static linking when using --js-library