Find YAJL via pkg-config
Fix long/int cast errors