Statically link handler_file to the plugins depending on it.

This solves the errors which states that libplugin_file.so is not
portable and therefore fix #1072. It might potentially result in
more optimised binaries when Link-time optimisation is used.

Other proposals are welcome.