add libraries to the end of compile command