add make commands to compile libgs
fix leak in ps module