Protobuild linux fixes, probablly should have included with the last PR

I probably should have included this with the last pull request, sorry. Also if you guys want to keep <binary> instead of <reference> you'll need to add ".config" files, or set local copy to false.