wrapper for recast, fix linker error

cost me several hour !!!! i'm too naive