fix compilation error
Fix compilation and link of the ps module with static linking