fork/exec refinement and some code cleanup

remove -lgcc for userspace program (this cause problem)