Fix os stuff to work with android