Make output a static library instead of a executable file (maybe shared library is better, but I'd like to keep it like this)