Package glew: Enable shared build.

- Do ar and ranlib in one step (ar s).
- For shared builds, we use -O0 instead of -O2, otherwise the resulting
  DLL does not work...