extravasate boards to library, so they can be optimized

common pragmas include is kept in main.cpp files

also fixed many warning that appeared upon entrance to library