Various FBO-related fixes, hopefully reducing or removing the related crashes...