Fixed compilation with musl 1.2.x , mostly. Added a patch fixing compilation on 32-bit platforms. Signed-off-by: Rosen Penev <rosenp@gmail.com>