Fixed build warning with gcc 4.7.3

  [Problem] build warning with gcc 4.7.3
            warning: cast from ‘VoidFunctionPtr {aka void (*)(int)}’ to ‘int’ loses precision [-fpermissive]
[Reference] http://stackoverflow.com/questions/6172232/is-it-undefined-behaviour-to-delete-a-null-void-pointer