Such setup is better for cross compilation. Also changed Makefile to properly make the project with these libraries.