Convert a few more create_function to anonymous functions

Signed-off-by: Shitiz Garg <mail@dragooon.net>