Fixed link error when configured with --prefix option