Referring to HLSDK, pm_shared compiles with server and client both, so I added client specific variables and it don't errors when compiling it with CLIENT_DLL macro enabled.