Fix wrong barrier in private header
First attempt at making a shared version of the library

Not having success with the exceptions yet.
inierr -> inifile_err