Some fixes of libraries
Removed warning disablers
Added "Fix wrong masks" menuitem"