The midori ebuild does not set the libdir properly. Attached is an fixed ebuild
Created attachment 174257 [details] midori-9999.ebuild
Fixed, together with fixes for ldflags and cflags.