Fix alpm test
Fix cgo function prototype