Fix explicit instanciation so that it really works, and compile with systems that has the --only-needed ld option by default (such as ubuntu and others)