fix build errors after moving typedefs.h to common
enable idct & dequant mmx/sse in encoder