Stricter mutex protection, fix stdio errors and compiler warnings
Merge pull request #27 from Lithopsian/artwork

artwork: Stricter mutex protection, fix stdio errors and compiler warnings