Add wxfred support
Add option to build libraries