Added /!debug flag when compiled in debug mode
Now supports different kinds of flag headers (Unix/default, windows, custom)

Signed-off-by: robhol <email@robhol.net>