[tools] fixup pbc_to_exe fix, missing unistd.h with --optimize

PARROT_HAS_HEADER_UNISTD is only defined after loading parrot/api.h
Fixes #1117