fix issue with intptr_t not being found/defined
update build scripts