Move all libprefix/libextra logic to BuildCommon.xml