Improvement to extconf hopefully will allow Mac and Ubuntu compilation