Fixed build errors.
Possible to run on 24 bit RGB surface, but the rendering is messed up.