remove irrelevant PHP code
name the makefile properly
don't needessly cast pointer to int
delete an unused function that also casts a pointer into an int
which of course doesn't fit on a 64-bit platform...