Fixed various minor issues to compile with clang

Removed some inline
Converted inline to static inline
Cleaned Makefile