lib: backwards compatibility to lower version of Android