Used min SDK 19 and fixed compile errors