It tries to link to host libraries for some reason. Add autoreconf to fix. Also remove redundant prefixes. Signed-off-by: Rosen Penev <rosenp@gmail.com>