Make it compilable with cmake