Converted most macros (except variadic ones) to static inlines so that they produce better errors at compile time when people supply bad arguments or wrong amount, etc.
Added security flags around the library.