fix api signature and test
wrong timer fd compile switch is used.
Merge pull request #19 from umegaya/feature/api_tweak

fix api signature and test 
alas, travis CI seems dont do 2nd test. but LGTM, try to merge.