On second thought no, look at the differences in the following files
main.cpp,main.h,
mod_sa.def
Add the following files
#include "mman.h"
#include "cshortasm.h"
#include "ccallhook.h"
And that's it, and rename your file from d3d9.dll
to another name that ends in .asi