Build fixes, second attempt

Obsoletes pull request #43.

snes9x.h is included in snapshot.h and display.h before their required types. Z_BZIP2ED is only used #if defined HAVE_BZIP2.

This pull request does not include the commit from pull request #27.