Fixes for compatability with phpBB 3.1.2