Uxmal graphics library (UGL) provides simple low level layer for 2D blitting and drawing. Also includes some utilities. Works both on Linux (fbdev) and Windows (ddraw).
These details are provided for information only. No information here is legal advice and should not be used as such.