Now compiling on both cygwin and on raspbian. Now compiling with static lib.