Simple API prototype.
Revert "Avoid Eclipse bug by changing inclusion order for getopt.h and unistd.h."

This reverts commit 077690f9eb7826089e0822869d6187161e97d512.