Amlogic specific build and runtime fixes