use nim's dynlib pragma instead of header pragma