Fixed the medianFilter.so runtime linker error

This applies the same fix as on the hydro-devel branch for the medianFilter.so runtime linker error