main/mysql: upgrade to 5.5.40

fixes #3393
main/bash: security upgrade to 4.2.50 (CVE-2014-7169)

fixes #3403