extract binary stuff into a gem
use the same detect/compile/release scripts