Improved makefile
Make sure polar tests work correctly for libc++