now build libraries and then compile