Fixed Javasript building on linux