Bring inline with CM10.1

* Forked some changes from albinoman
* Build fixes for AOKP jb-mr1