[WIP] start fiddling with libs and Makefile