Compilation under GNU/Linux

So i tried to compile this lib under Linux and fixed any/all errors that cropped up (mainly compiler differences). Also added Makefile to automate compile process under Linux.
Could you check if this doesn't break Windows build?
Also, do you have some sample program that uses this library, cause I'd really love to listen to NDS music on PC (until now i have been using emulated CaitSith2/SSEQPlayer).