Fixed the "extra flags to the linking phase" parameter not working for shared libraries.