Fixed libraries in main