Move SecurityManager to desktop-common as android does not support it