Add wrappers for __open*_2 functions

When glibc is compiled with optimization and higher _FORITFY_SOURCE levels,
the headers redirect open* calls to __open*_2.  Add wrappers for these.

Fixes #6