Fix not being able to load resources on OS X