so provide function prototypes that respect that, avoiding a gcc warning that `volatile' is being thrown away.
definitions for things like locking etc.
prototypes for the spinlock functions that will be used for thread locks. libc will have stubs declared with weak symbols. libpthread and libc_r will have functions that really do something.