Use resources
Fix compiler warnings