keep modifier in function ptr type. otherwise the type may mismatch

for example nvidia cuda api in wndows has modifier __stdcall and it
matters