much clever way of copying setup.h and generating resources header file

Signed-off-by: Marian 'VooDooMan' Meravy <vdm113@gmail.com>