add compile function to ebuild