Adopt for Cyanogenmod environment

Update sources to compile with Cyanogenmod environment.
Also add brief build instructions.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>