Add some cygwin fixes and lua formula