remove mac specific gem
fix guard helper
don't include static.h,

it is included by the build system
don't crash when flood filling on the top/left border