fix compilation by porting our anchor setting methods
Merge pull request #3 from gamechanger/ps-compile

fix compilation by porting our anchor setting methods