mp: more generic build script to allow simply linking to it