x64 fixes and PATH_BINARY size fix