Updated to work with libprefix.