Fix for ISO C strictness
Fix EXPORT not defined on non-GNU compilers
Cleanup and remove unused vars
Fix bug in acebot
Re-enable sRGB on Windows