added latedef_func option support.

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>