Merge pull request #1 from LordAro/master

Fix compilation with decent compilers
Don't attempt to load with an empty filename