Load debuglib and deriving as library instead