libpurple: make perl support optional