Removed most patches as they are no longer necessary for compilation. Added some compiler and linker flags to reduce size. Signed-off-by: Rosen Penev <rosenp@gmail.com>