Correct some warnings
Moved some cmake defines so that the created info.rc has the correct values
Support JPEG file format