Added template version for detouring with method which calls original function
Ussing vector exception instead of unhandled exception for windows