new package version
move typedefs so they are not redefined

this is allowed in C11, but not in C89 or C99, and older
versions of GCC don't accept this.
use __asm__ instead of asm
add feature test macros for glibc
removed unused variable
prefer C89 comments
Merge branch 'pvs/devel'