Now builds on linux, had to define library as last flag in gcc command sequence