Warnings fixes: implicit declarations in L&B 3.2 branch, fixes backported from master.