in reply to Why behaviour changes after converting to exe
You may be able to use the -x switch of pp to have it catch these dependencies. Be careful though: because this switch actually runs the program, if the program never terminates or does some destructive operation this might have undesired effects.