make ptrace calls work correctly for hp300