Add run permissions
Fix compiler warning