llsec: Turned coresec into a module