OSX warnings
Template test removal
Fix “no prototype” warnings
Removed several analyser errors