add rubygem popen4 as a build dependency
fix build errors w/ core libraries